<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">

 

function openwin() {  
    alert("1");
    window.open("page.html", "", "width=200,height=200")  
    alert("2");
} 

$(document).ready(fucntion(){  
	openwin();  
}); 


</script>

<body>
弹框
</body>
</html>